//
//  CMCHTTPClient.m
//  reacticons
//
//  Created by Nong Trung Nghia on 9/11/12.
//
//

#import "CMCHTTPClient.h"

@implementation CMCHTTPClient

static NSString * const tumblrBaseURL = @"http://www.reacticons.com/";

+(CMCHTTPClient *)sharedClient {
    static CMCHTTPClient *_sharedClient = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _sharedClient = [[CMCHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:tumblrBaseURL]];
    });
    
    return _sharedClient;
}

- (id)initWithBaseURL:(NSURL *)url {
    self = [super initWithBaseURL:url];
    if (!self) {
        return nil;
    }
    
    return self;
}
@end
